package com.sk.bilibili.other;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class BiliBiliProperty {

    private Properties properties;

    public BiliBiliProperty(InputStream is) {
        properties = new Properties();
        try {
            properties.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public String getString(String key) {
        return properties.getProperty(key);
    }

    public int getInt(String key) {
        return Integer.parseInt(getString(key));
    }

}